package com.wyw.design.model.learning.behavioral.visitor;

/**
 * @Title   具体访问者 root用户
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/19 17:18
 * Update History:
 * Author        Time            Content
 */
public class RootVisitor implements Visitor {
    @Override
    public void visit(FileElement fileElement) {
        System.out.println("当前：Root " + "要访问的文件名：" + fileElement.getName() + " 允许访问!");
    }
    @Override
    public void visit(DictionaryElement dictionaryElement) {
        System.out.println("当前：Root " + "要访问的文件夹名：" + dictionaryElement.getName() + " 允许访问!");
    }
}
